package com.xiehua.task.client.job;

import com.xiehua.task.job.pool.Job;

public interface JobExecuter {

    /**
     * 执行job
     * @param bizDate
     * @return boolean
     * **/
    boolean asynExecute(String bizDate) throws RuntimeException;

    /**
     * 异步提交job
     * @param job
     * @return 本次任务注册的请求id
     * **/
    String asynSubmitJob(Job job) throws RuntimeException;

    /**
     * 异步接收job提交的结果
     *
     * @param reqId 任务注册时返回的请求id
     * @param taskId 任务中心分配的任务id
     * @param result 任务注册结果
     * **/
    void asynNotifyResult(String reqId,String taskId,Boolean result) throws RuntimeException;



}
